<div class="container">
    <div class="row">
        <div class="span10 offset1 well">
            <?php echo $this->partial('app/rolelist.phtml', $this->roleList); ?>
            <div class="span5 well color2">
                <div class="btn-group">
                    <a class="btn btn-primary" href="<?php echo $this->url(array('do' => 'edit', 'roleid' => $this->roleId)); ?>">ändern</a>
                </div>
                <p></p>
                <?php if (!is_array($this->moduleList)) : ?>
                <div class="alert alert-error">
                    <label class="checkbox alert-error">
                        <input type="checkbox" disabled="" checked=""> Administrator
                    </label>
                </div>
                <?php endif; ?>
                <div class="accordion color5" id="accordion2">
                <?php if(is_array($this->moduleList)) : ?>
                <?php foreach($this->moduleList as $app => $typ) : ?>
                <div class="accordion-group">
                    <div class="accordion-heading color4">
                        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse<?php echo next($this->numAsWord); ?>">
                            <?php echo $typ['app']['name']; ?>
                        </a>
                    </div>
                    <div id="collapse<?php echo current($this->numAsWord); ?>" class="accordion-body collapse" style="height: 0px; ">
                        <div class="accordion-inner">
                            <?php foreach($typ['controller'] as $controller => $name) : ?>
                            <fieldset>
                                <legend><?php echo $name; ?></legend>
                                <?php foreach($typ['action'][$controller] as $action => $name) : ?>
                                <label class="checkbox">
                                    <input type="checkbox" disabled="" <?php echo (isset($typ['access'][$controller][$action])) ? 'checked=""' : ''; ?>> <?php echo $name; ?>
                                </label>
                                <?php endforeach; ?>
                            </fieldset>
                            <?php endforeach; ?>
                        </div>
                    </div>
                <?php endforeach; ?>
                <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</div>